package com.md.drcs.dicom.entity;

import com.md.common.utils.json.JSONUtil;
import org.apache.commons.lang3.StringUtils;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 功能描述：t_image表实体
 * 
 * @author liuzg1@guahao.com
 * @version 1.0
 * @date 2018/12/11 18:04
 * @since JDK 1.8
 */
@Table(name = "t_image")
public class ImageEntity implements Serializable{
	
	//columns START
	/**
	 * nImgId
	 */
	@Id
	@Column(name = "nImgId")
	private Long nImgId;
	/**
	 * nSeriId
	 */
	@Column(name = "nSeriId")
	private Long nSeriId;
	/**
	 * sImageidInPacs
	 */
	@Column(name = "sImageidInPacs")
	private String sImageidInPacs;
	/**
	 * sImgPath
	 */
	@Column(name = "sImgPath")
	private String sImgPath;
	/**
	 * nInsNum
	 */
	@Column(name = "nInsNum")
	private Integer nInsNum;
	/**
	 * acquisitionDate
	 */
	@Column(name = "acquisitionDate")
	private LocalDateTime acquisitionDate;
	/**
	 * sFormat
	 */
	@Column(name = "sFormat")
	private String sFormat;
	/**
	 * nWidth
	 */
	@Column(name = "nWidth")
	private Integer nWidth;
	/**
	 * nHeight
	 */
	@Column(name = "nHeight")
	private Integer nHeight;
	/**
	 * sSopInsUid
	 */
	@Column(name = "sSopInsUid")
	private String sSopInsUid;
	/**
	 * nDelFlag
	 */
	@Column(name = "nDelFlag")
	private Integer nDelFlag;
	/**
	 * sSrcImgPath
	 */
	@Column(name = "sSrcImgPath")
	private String sSrcImgPath;
	/**
	 * nSaveStatus
	 */
	@Column(name = "nSaveStatus")
	private Integer nSaveStatus;
	//columns END 数据库字段结束
	
	//get and set
	public void setNImgId(Long nImgId) {
		this.nImgId = nImgId;
	}
	
	public Long getNImgId() {
		return this.nImgId;
	}
	
	public void setNSeriId(Long nSeriId) {
		this.nSeriId = nSeriId;
	}
	
	public Long getNSeriId() {
		return this.nSeriId;
	}
	
	public void setSImageidInPacs(String sImageidInPacs) {
		this.sImageidInPacs = StringUtils.trim(sImageidInPacs);
	}
	
	public String getSImageidInPacs() {
		return this.sImageidInPacs;
	}
	
	public void setSImgPath(String sImgPath) {
		this.sImgPath = StringUtils.trim(sImgPath);
	}
	
	public String getSImgPath() {
		return this.sImgPath;
	}
	
	public void setNInsNum(Integer nInsNum) {
		this.nInsNum = nInsNum;
	}
	
	public Integer getNInsNum() {
		return this.nInsNum;
	}
	
	public void setAcquisitionDate(LocalDateTime acquisitionDate) {
		this.acquisitionDate = acquisitionDate;
	}
	
	public LocalDateTime getAcquisitionDate() {
		return this.acquisitionDate;
	}
	
	public void setSFormat(String sFormat) {
		this.sFormat = StringUtils.trim(sFormat);
	}
	
	public String getSFormat() {
		return this.sFormat;
	}
	
	public void setNWidth(Integer nWidth) {
		this.nWidth = nWidth;
	}
	
	public Integer getNWidth() {
		return this.nWidth;
	}
	
	public void setNHeight(Integer nHeight) {
		this.nHeight = nHeight;
	}
	
	public Integer getNHeight() {
		return this.nHeight;
	}
	
	public void setSSopInsUid(String sSopInsUid) {
		this.sSopInsUid = StringUtils.trim(sSopInsUid);
	}
	
	public String getSSopInsUid() {
		return this.sSopInsUid;
	}
	
	public void setNDelFlag(Integer nDelFlag) {
		this.nDelFlag = nDelFlag;
	}
	
	public Integer getNDelFlag() {
		return this.nDelFlag;
	}
	
	public void setSSrcImgPath(String sSrcImgPath) {
		this.sSrcImgPath = StringUtils.trim(sSrcImgPath);
	}
	
	public String getSSrcImgPath() {
		return this.sSrcImgPath;
	}
	
	public void setNSaveStatus(Integer nSaveStatus) {
		this.nSaveStatus = nSaveStatus;
	}
	
	public Integer getNSaveStatus() {
		return this.nSaveStatus;
	}
	
	
	public String toString() {
		return JSONUtil.toJSON(this);
	}
	
}

	
